//
//  ZJDownLabelView.m
//  ShangHaiHuDongApp
//
//  Created by ZJ on 2017/7/4.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "ZJDownLabelView.h"

@interface ZJDownLabelView ()
/** imageView */
@property (nonatomic, strong) UIImageView *imageView;
@end

@implementation ZJDownLabelView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.imageView];
        [self addSubview:self.textLabel];
    }
    return self;
}



- (UILabel *)textLabel{
    if (_textLabel == nil){
        _textLabel = [[UILabel alloc] initWithFrame:CGRectMake(10 * [UIScreen zj_screenWScale], 0, self.imageView.x - 20 * [UIScreen zj_screenWScale], self.height)];
        _textLabel.userInteractionEnabled = YES;
        _textLabel.font = [UIFont titleTextFont];
        _textLabel.textColor = [UIColor textBlackColor];
    }
    return _textLabel;
}
- (UIImageView *)imageView{
    if (_imageView == nil){
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.width - 30 * [UIScreen zj_screenWScale], 0, 30 * [UIScreen zj_screenWScale], self.height)];
        _imageView.image = [UIImage imageNamed:@"sign_select_more"];
        _imageView.contentMode = UIViewContentModeCenter;
    }
    return _imageView;
}
@end
